/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cards;

import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.InputStreamReader;

import settings.gameSettings;

/**
 *
 * @author Manny
 */
public class Deck {
    private int CARDS;
    private int GRAVEYARD_CARDS;
    private String list[];
    private Card cardlist[];
    
    protected buildDeck(){
        gameSettings gs = new gameSettigns();
        
        
        String filePath = "C:\\Users\\Manny\\Documents\\"
                + "NetBeansProjects\\player1Deck.txt";
        FileInputStream fstream = new FileInputStream(filePath);
	DataInputStream in = new DataInputStream(fstream);
	BufferedReader br = new BufferedReader(new InputStreamReader(in));
        String fileText;
        
        int i = 0;
        while ((fileText = br.readLine()) != null){
            list[i] = fileText;
            setCards(getCards() + 1);
        }
    }
    
    protected int getCards(){
        return CARDS;
    }
    
    protected void setCards(int cardAmount){
        CARDS = cardAmount;
    }
    
    private void setMaxCards(int max){
        list = new String[max];
        
    }
}
